include("shared.lua")

function ENT:Initialize()
	self:DrawShadow(false)
	self:SetRenderBounds(Vector(-100, -100, -100), Vector(100, 100, 100))
	self.NextAttack = 0

	local car = self:GetOwner()
	if car:IsValid() then
		car:AddPowerup(self)
	end
end

function ENT:OnRemove()
	local car = self:GetOwner()
	if car:IsValid() then
		car:RemovePowerup(self)
	end
end

function ENT:DrawTranslucent()
	local owner = self:GetOwner()
	if not owner:IsValid() then return end

	self:SetColor(owner:GetColor())
	self:SetModelScale(SCALE, 0)
	self:DrawModel()
end

function ENT:DrawDashboard(pos, ang, scale, i)
	draw.DrawText("ROCKETS: "..self:GetAmmo().." / "..MAX_ROCKETS, "ScoreboardSub", 600, i * 50, COLOR_RED, TEXT_ALIGN_RIGHT)
end
